package com.wzdigit.wms.basic.enums.transfer;


import com.wzdigit.wms.basic.enums.BaseEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * 调拨中间表--业务类型（原单类型）
 */
public enum IfTransferBillTypeEnum implements BaseEnum {

	/*OMS*/
	BETWEEN_FACTORY_TRANSFER(7, "组织间调拨", "IfTransferBillType"),
	
	/*SAP*/
	SO_NO_TRANSFER(8, "销售订单调拨", "IfTransferBillType"),
	
	/*OA*/
	BORROW_TRANSFER(1, "借机", "IfTransferBillType"),
	BACK_TRANSFER(2, "还机", "IfTransferBillType");

    /**
     * 枚举值
     */
    public Integer code;

    /**
     * 枚举名称
     */
    public String enumName;

    /**
     * 枚举实体类属性描述
     */
    public String description;
    
    public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getEnumName() {
		return enumName;
	}

	public void setEnumName(String enumName) {
		this.enumName = enumName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	IfTransferBillTypeEnum(String enumName, String description) {
        this.enumName = enumName;
        this.description = description;
    }

    IfTransferBillTypeEnum(Integer code, String enumName, String description) {
        this.code = code;
        this.enumName = enumName;
        this.description = description;
    }

    public static Map<Integer, String> getEnumByDescription() {
        Map<Integer, String> enumMap = new HashMap<Integer, String>();
        IfTransferBillTypeEnum[] values = IfTransferBillTypeEnum.values();
        for (IfTransferBillTypeEnum value : values) {
        	enumMap.put(value.getCode(), value.getEnumName());
        }
        return enumMap;
    }
}
